import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';

import React from 'react';
import ReactDOM from 'react-dom';

import { BrowserRouter as Router,Switch, Route } from 'react-router-dom';

import './index.css';
import App from './App';
import Test from './com/Test.js';
import * as serviceWorker from './serviceWorker';

// ReactDOM.render(<App />, document.getElementById('root'));
ReactDOM.render(
    <Router>
        <Switch>
            <Route exact path='/' component={App}/>
            <Route exact path='/test' component={Test}/>
        </Switch>
    </Router>,
    document.getElementById('root'));


// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
